package utility;

public class ArrayAttributes extends Attributes {
    private String eleType;
    private int bounds;

    ArrayAttributes() {
        type = "array";
        kind = "var";
    }
    ArrayAttributes(Boolean para) {
        super(para);
        type = "array";
        kind = "var";
    }
    public Boolean equals(ArrayAttributes attributes) {
        if (super.equals(attributes) && eleType.equals(attributes.eleType)
                && bounds == attributes.bounds)
            return true;
        return false;
    }

    public String getEleType() {
        return eleType;
    }

    public void setEleType(String eleType) {
        this.eleType = eleType;
    }

    public int getBounds() {
        return bounds;
    }

    public void setBounds(int bounds) {
        this.bounds = bounds;
    }

}
